package com.woniu.supermarket.mapper;

import com.woniu.supermarket.entity.Imgs;
import com.woniu.supermarket.vo.GoodsVo;
import com.woniu.supermarket.vo.ImgsGoodsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ImgsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ImgsGoodsVo record);

    ImgsGoodsVo selectByPrimaryKey(Integer id);

    List<ImgsGoodsVo> selectImgsGoodsByCons(@Param("des") String des, @Param("cid") Integer typeId);

    List<Imgs> selectAll();

    int updateByPrimaryKey(ImgsGoodsVo record);

    int deleteBatchImgs(int[] ids);
}